package com.seelyn.ddvideo.model;

import com.seelyn.ddvideo.spider.FromSiteEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ifcousing-linfeng
 * @since 2017/6/22
 */
public class VideoFrom {

    private String fromSite;//来源网站
    private String fromSiteName;//来源网站
    private List<VideoPlayer> players = new ArrayList<>();

    public VideoFrom(FromSiteEnum fromSiteEnum) {
        this.fromSite = fromSiteEnum.name();
        this.fromSiteName = fromSiteEnum.getValue();
    }

    public VideoFrom() {
    }

    public String getFromSite() {
        return fromSite;
    }

    public void setFromSite(String fromSite) {
        this.fromSite = fromSite;
    }

    public String getFromSiteName() {
        return fromSiteName;
    }

    public void setFromSiteName(String fromSiteName) {
        this.fromSiteName = fromSiteName;
    }

    public List<VideoPlayer> getPlayers() {
        return players;
    }

    public void setPlayers(List<VideoPlayer> players) {
        this.players = players;
    }

}
